import requests
 
def getproxy_zly():
    proxyurl='http://api.ipipgo.com/ip?cty=00&c=1&pt=1&ft=txt&pat=\n&rep=1&key=0c4201f3'
    response=requests.get(proxyurl  )
    proxyip=response.text.replace('\n','')
    
 
    print({
            "http": proxyip,
            "https": proxyip
            })
    return {
            "http": proxyip,
            "https": proxyip
            }
x=getproxy_zly()
print(x)
